<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格用来显示</title>
</head>
<body>
    <p>表格是用来表示显示二维数据的重要标签</p>
    <hr>
    <p>构建2行3列的表格</p>
    <!--border之类的属性是不推荐使用的-->
    <table border="1">
    
        <tr>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
        </tr>
        <tr>
            <td>单元格</td>
            <td>单元格</td>
            <td>单元格</td>
        </tr>
    </table>
    <hr>
    <p>构建含caption/thead/tbody/tfoot</p>
    <table border="1">
        <caption>学生信息表</caption>
        <thead>
            <tr>
                <td>&nbsp;</td>
                <td>姓名</td>
                <td>学号</td>
                <td>总分</td>
                <td>排名</td>
            </tr>

        </thead>
        <tbody>
            <tr>
                <th>1</th>
                <td>张三</td>
                <td>20200202048</td>
                <td>645</td>
                <td>1</td>
            </tr>
            <tr>
                <th>2</th>
                <td>王五</td>
                <td>20200202034</td>
                <td>610</td>
                <td>2</td>

            </tr>
            <tr>
                <th>3</th>
                <td>李四</td>
                <td>20200202098</td>
                <td>601</td>
                <td>5</td>
            </tr>
        

        
        </tbody>
        <tfoot>
            <tr>
                <!--td>统计:</td>
                <td>空白</td>
                <td>空白</td-->
                <td colspan="5">统计:</td>
            </tr>

        </tfoot>

    </table>
    <p>表格列分组</p>
    <table border="1">
        <colgroup>
            <col span="2">
            <col span="3">
        
        </colgroup>
        <tr>
            <td>分组1</td>
            <td>分组1</td>
            <td>分组2</td>
            <td>分组2</td>
            <td>分组2</td>
        </tr>
        <tr>
            <td>分组1</td>
            <td>分组1</td>
            <td>分组2</td>
            <td>分组2</td>
            <td>分组2</td>
        </tr>
        <tr>
            <td>分组1</td>
            <td>分组1</td>
            <td>分组2</td>
            <td>分组2</td>
            <td>分组2</td>
        </tr>
    </table>
    <hr>



    <br><br><br><br><br>
</body>
</html>
